package com.icloud.wallet.boot.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class RechargeOrderDto implements Serializable {
    @ApiModelProperty(value = "充值币种", allowableValues = "BCPC_BEP20", required = true)
    @NotEmpty(message="充值币种必填")
    private String cryptoCurrency;

    @ApiModelProperty(value = "合约地址")
    private String contractAddr;

    @ApiModelProperty(value="充值金额", required = true)
    @NotNull(message="充值金额必填")
    private BigDecimal amount;

    @ApiModelProperty(value="付款地址", required = true)
    @NotEmpty(message="付款地址必填")
    private String from;

    @ApiModelProperty(value="收款地址", required = true)
    @NotEmpty(message="收款地址必填")
    private String to;

    @ApiModelProperty(value = "下单时间")
    private Long orderTime;
}
